﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Krist_em_up.Network
{
    class Lobby : GameScreen
    {
        protected NetworkSession networkSession;

        public Lobby(GameStateManager game, NetworkSession session) : base(game)
        {
            networkSession = session;
        }
        public override void Update(GameTime gameTime)
        {
            
        }

        public override void Draw(GameTime gameTime)
        {
            foreach (NetworkGamer gamer in networkSession.AllGamers)
            {
                DrawGamer(gamer, Vector2.Zero);
            }
        }

        public override void LoadContent()
        {
            
        }

        public override void UnloadContent()
        {
            
        }

        public override void Initialize()
        {
            
        }

        public override void Reset()
        {
            
        }

        protected void DrawGamer(NetworkGamer gamer, Vector2 position)
        {            
            Color color = (gamer.IsLocal) ? Color.Yellow : Color.White;

            //spriteBatch.DrawString(font, gamer.Gamertag, position, color
        }
    }
}
